import "./less/main.less"
import '@babel/polyfill';
import store from "./store/store.js"
import Vue from 'vue'
import Vuex from 'vuex';
import App from './App'

import '@/permission' // permission control
import router from './router/router.js'
import '@/icons' // icon

// import {
//   List, NavBar, Tab, Tabs, Sticky, Button, Search, Icon, Popover, Cell, CellGroup, Tag, Step, Steps, Image as VanImage, ActionSheet,
//   Picker, Popup, Field, Empty, Toast, Dialog, Checkbox, CheckboxGroup, Switch, PullRefresh, NoticeBar, Swipe, SwipeItem, Pagination,
//   Grid, GridItem, SwipeCell, Form, DatetimePicker, IndexBar, IndexAnchor, Col, Row, RadioGroup, Radio, Collapse, CollapseItem, Loading,
//   Stepper, Overlay, Badge, Cascader, Uploader, Tabbar, TabbarItem, CountDown, Divider, Sidebar, SidebarItem, TreeSelect
// } from 'vant';

// Vue.use(List).use(NavBar).use(Tab).use(Tabs).use(Sticky);
// Vue.use(Button).use(Search).use(Icon).use(Popover).use(Cell).use(CellGroup).use(Tag).use(Col).use(Row).use(Pagination).use(ActionSheet);
// Vue.use(Step).use(Steps).use(VanImage).use(Picker).use(Popup).use(Field).use(Empty).use(Toast).use(NoticeBar).use(Swipe).use(SwipeItem).use(Grid).use(GridItem)
// Vue.use(Dialog).use(Checkbox).use(CheckboxGroup).use(Switch).use(PullRefresh).use(SwipeCell).use(Form).use(DatetimePicker).use(IndexBar).use(IndexAnchor)
// Vue.use(RadioGroup).use(Radio).use(Grid).use(GridItem).use(Collapse).use(CollapseItem).use(Loading).use(Overlay).use(Badge);
// Vue.use(Stepper).use(Cascader).use(Uploader).use(Tabbar).use(TabbarItem).use(CountDown).use(Divider).use(Sidebar).use(SidebarItem).use(TreeSelect)

Vue.use(Vuex);

// import vconsole from 'vconsole';
// let vConsole = new vconsole();

// 测试
import huComponents from './package/index'
Vue.use(huComponents)


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
